<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
	<div class="table-responsive">
		<table class="table table-bordered table-hover" style="font-size:12px;">
			<thead>
				<tr>
					<td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);"></td>
					<td class="text-center">
						<a href="javascript:sort('order_sn');">订单编号</a>
					</td>
					<!-- <td class="text-center">
						<a href="javascript:sort('consignee');">收货人</a>
					</td> -->
					<td class="text-center">
						<a href="">总金额</a>
					</td>
					<!-- <td class="text-center">
						<a href="">应付金额</a>
					</td> -->
					<!--<td class="text-center">
                                        <a href="javascript:sort('order_status');">订单状态</a>
                                    </td>-->
					<td class="text-center">支付状态</td>
					<!-- <td class="text-center">发货状态</td>
					<td class="text-center">支付方式</td> -->
					<!-- <td class="text-center">配送方式</td> -->
					<td class="text-center">
						<a href="javascript:sort('add_time');">下单时间</a>
					</td>
					<td class="text-center">订单状态</td>
					<td class="text-center">操作</td>
				</tr>
			</thead>
			<tbody>
				<volist name="orderList" id="list">
					
					<if condition="$admin_info['admin_id'] eq '1' ">
						
					<tr>
						<td class="text-center">
							<input type="checkbox" name="selected[]" value="6">
							<input type="hidden" name="shipping_code[]" value="flat.flat">
						</td>
						<td class="text-center">{$list.order_sn}</td>
						<!-- <td class="text-center">{$list.consignee}:{$list.mobile}</td> -->
						<td class="text-center">{$list.total_amount}</td>
					<!-- 	<td class="text-center">{$list.order_amount}</td> -->
						
					<if condition ="$list['pay_s_jj'] eq '1'" ><td class="text-center">已支付首款</td>
					<elseif condition ="$list['pay_s_jj'] eq '2'" />	<td class="text-center">已支付全额</td>
					<elseif condition ="$list['pay_s_jj'] eq '0'" />	<td class="text-center">未支付</td>
					<elseif condition ="$list['pay_s_jj'] eq '3'" />	<td class="text-center">已支付尾款</td>
					<elseif condition ="$list['pay_s_jj'] eq '4'" />	<td class="text-center">线下支付</td>
				</if>
						<!-- <td class="text-center">{$order_status[$list[order_status]]}
							<if condition="$list['is_cod'] eq '1'"><span style="color: red">(货到付款)</span></if>
						</td> -->
						<!-- <td class="text-center">{$pay_s_jj[$list[pay_s_jj]]}</td>-->
						<!-- <td class="text-center">{$shipping_status[$list[shipping_status]]}</td>
						<td class="text-center">{$list.pay_name|default='其他方式'}</td>
						<td class="text-center">{$list.shipping_name}</td> -->
						<td class="text-center">{$list.add_time|date='Y-m-d H:i',###}</td>
						<td class="text-center">
							<if condition ="$list['shipping_status'] eq '1'" ><span style="color: #3C8DBC;">已发货</span>
							<elseif condition="$list['shipping_status'] eq '2'"/><span style="color: #3C8DBC;">自提</span>	
							<elseif condition="$list['shipping_status'] eq '3'"/><span style="color: #3C8DBC;">签收</span>	

							<elseif condition="$list['pay_s_jj'] neq '0' and $list['psarr'] eq '1'"/><span style="color: #3C8DBC;">待发货</span>	
							<elseif condition="$list['pay_s_jj'] neq '0'"/><span style="color: #3C8DBC;">已支付待加工</span>	
							<else/>	
							<!--order_status  audit-->
							<if condition="$list['already_offer'] eq '0' and $list['order_status'] eq '0'"><span style="color: #ED452B;">等待分配工序</span>
								<elseif condition="$list['already_offer'] eq '0' and $list['order_status'] eq '1' " /><span style="color: #67B02A;">订单已分配完等待微企报价与审核</span>
								<elseif condition="$list['already_offer'] eq '0' and $list['order_status'] eq '2' " /><span style="color: #67B02A;">订单未分配完工序，微企可报价已分配图号</span>

								<elseif condition="$list['already_offer'] eq '1'" /><span style="color: #67B02A;">审核通过等待消费者选择</span>
								<elseif condition="$list['already_offer'] eq '2'" /><span style="color: #3C8DBC;">已选择报价</span>
								<elseif condition="$list['already_offer'] eq '3'" /><span style="color: #3C8DBC;">签约合同</span>
								<elseif condition="$list['already_offer'] eq '4'" /><span style="color: #3C8DBC;">订单待支付</span>

							</if>
						</if>
						</td>
						<td class="text-center">
							<a href="{:U('Admin/order/tuhaolist',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a>

							<!--分配工序操作 -->
							<!--<if condition="$list['allot_status'] eq '0' && $admin_info['admin_id'] eq '1'">
                                                <a href="{:U('Admin/order/fpgx',array('order_id'=>$list['order_id']))}"  data-toggle="tooltip" title="分配工序" class="btn btn-warning" data-original-title="分配工序"><i class="fa fa-cubes"></i></a>
                                                <elseif condition="$list['wq_id'] eq '0' && $admin_info['admin_id'] neq '1' && $list['allot_status'] neq '0'"/>
                                                <a href="{:U('Admin/order/gxbj',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="工序报价" class="btn btn-warning" data-original-title="工序报价"><i class="fa fa-jpy"></i></a>
                                        	</if>-->

							<if condition="($list['order_status'] eq 3) or ($list['order_status'] eq 5)">
								<a href="{:U('Admin/order/delete_order',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
								<else/>
								<a href="javascript:void(0)" onclick="alert('该订单不得删除')" data-toggle="tooltip" class="btn btn-default" title="删除"><i class="fa fa-trash-o"></i></a>
							</if>
							<!--                                        	<a href="{:U('Admin/order/tuhaolist',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="图号显示" class="btn btn-info"" data-original-title="图号显示"><i class="ffa fa-eye"></i></a>
-->
						</td>
				
					</tr>
					<elseif  condition = "$list['bb'] eq 0 and  $list['already_offer'] gt '2' " />
					<tr style="color: #CCCCCC;">
						<td class="text-center">
							<input type="checkbox" name="selected[]" value="6">
							<input type="hidden" name="shipping_code[]" value="flat.flat">
						</td>
						<td class="text-center">{$list.order_sn}</td>
						<!-- <td class="text-center">{$list.consignee}:{$list.mobile}</td> -->
						<td class="text-center">{$list.total_amount}</td>
						<!-- <td class="text-center">{$list.order_amount}</td> -->
						<if condition ="$list['pay_s_jj'] eq '1'" ><td class="text-center">已支付首款</td>
					<elseif condition ="$list['pay_s_jj'] eq '2'" />	<td class="text-center">已支付全额</td>
					<elseif condition ="$list['pay_s_jj'] eq '0'" />	<td class="text-center">未支付</td>
					<elseif condition ="$list['pay_s_jj'] eq '3'" />	<td class="text-center">已支付尾款</td>
					<elseif condition ="$list['pay_s_jj'] eq '4'" />	<td class="text-center">线下支付</td>
				</if>
						<!-- <td class="text-center">{$order_status[$list[order_status]]}
							<if condition="$list['is_cod'] eq '1'"><span style="color: red">(货到付款)</span></if>
						</td> -->
						<!-- <td class="text-center">{$pay_s_jj[$list[pay_s_jj]]}</td>-->
						<!-- <td class="text-center">{$shipping_status[$list[shipping_status]]}</td>
						<td class="text-center">{$list.pay_name|default='其他方式'}</td>
						<td class="text-center">{$list.shipping_name}</td> -->
						<td class="text-center">{$list.add_time|date='Y-m-d H:i',###}</td>
						<td class="text-center">
							<!--order_status  audit-->
								<if condition ="$list['shipping_status'] eq '1'" ><span style="color: #3C8DBC;">已发货</span>
							<elseif condition="$list['shipping_status'] eq '2'"/><span style="color: #3C8DBC;">自提</span>	
							<elseif condition="$list['shipping_status'] eq '3'"/><span style="color: #3C8DBC;">签收</span>	

							<elseif condition="$list['pay_s_jj'] neq '0' and $list['psarr'] eq '1'"/><span style="color: #3C8DBC;">待发货</span>	
							<elseif condition="$list['pay_s_jj'] neq '0'"/><span style="color: #3C8DBC;">已支付待加工</span>	
							<else/>	
							<if condition="$list['already_offer'] eq '0' and $list['order_status'] eq '0'"><span style="color: #ED452B;">等待分配工序</span>
								<elseif condition="$list['already_offer'] eq '0' and $list['order_status'] eq '1' " /><span style="color: #67B02A;">订单已分配完等待微企报价与审核</span>
								<elseif condition="$list['already_offer'] eq '0' and $list['order_status'] eq '2' " /><span style="color: #67B02A;">订单未分配完工序，微企可报价已分配图号</span>

								<elseif condition="$list['already_offer'] eq '1'" /><span style="color: #67B02A;">审核通过等待消费者选择</span>
								<elseif condition="$list['already_offer'] eq '2'" /><span style="color: #3C8DBC;">已选择报价</span>
								<elseif condition="$list['already_offer'] eq '3'" /><span style="color: #3C8DBC;">签约合同</span>
								<elseif condition="$list['already_offer'] eq '4'" /><span style="color: #3C8DBC;">订单待支付</span>

							
							</if>
						</if>
						</td>
						<td class="text-center">
							<a href="{:U('Admin/order/tuhaolist',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a>

							<!--分配工序操作 -->
							<!--<if condition="$list['allot_status'] eq '0' && $admin_info['admin_id'] eq '1'">
                                                <a href="{:U('Admin/order/fpgx',array('order_id'=>$list['order_id']))}"  data-toggle="tooltip" title="分配工序" class="btn btn-warning" data-original-title="分配工序"><i class="fa fa-cubes"></i></a>
                                                <elseif condition="$list['wq_id'] eq '0' && $admin_info['admin_id'] neq '1' && $list['allot_status'] neq '0'"/>
                                                <a href="{:U('Admin/order/gxbj',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="工序报价" class="btn btn-warning" data-original-title="工序报价"><i class="fa fa-jpy"></i></a>
                                        	</if>-->

							<if condition="($list['order_status'] eq 3) or ($list['order_status'] eq 5)">
								<a href="{:U('Admin/order/delete_order',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
								<else/>
								<a href="javascript:void(0)" onclick="alert('该订单不得删除')" data-toggle="tooltip" class="btn btn-default" title="删除"><i class="fa fa-trash-o"></i></a>
							</if>
							<!--                                        	<a href="{:U('Admin/order/tuhaolist',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="图号显示" class="btn btn-info"" data-original-title="图号显示"><i class="ffa fa-eye"></i></a>
-->
						</td>
				
					</tr>
					<else />
						<tr>
						<td class="text-center">
							<input type="checkbox" name="selected[]" value="6">
							<input type="hidden" name="shipping_code[]" value="flat.flat">
						</td>
						<td class="text-center">{$list.order_sn}</td>
						<!-- <td class="text-center">{$list.consignee}:{$list.mobile}</td> -->
						<td class="text-center">{$list.total_amount}</td>
						<!-- <td class="text-center">{$list.order_amount}</td> -->
						<if condition ="$list['pay_s_jj'] eq '1'" ><td class="text-center">已支付首款</td>
					<elseif condition ="$list['pay_s_jj'] eq '2'" />	<td class="text-center">已支付全额</td>
					<elseif condition ="$list['pay_s_jj'] eq '0'" />	<td class="text-center">未支付</td>
					<elseif condition ="$list['pay_s_jj'] eq '3'" />	<td class="text-center">已支付尾款</td>
					<elseif condition ="$list['pay_s_jj'] eq '4'" />	<td class="text-center">线下支付</td>
					
				</if>
						<!-- <td class="text-center">{$order_status[$list[order_status]]}
							<if condition="$list['is_cod'] eq '1'"><span style="color: red">(货到付款)</span></if>
						</td> -->
						<!-- <td class="text-center">{$pay_s_jj[$list[pay_s_jj]]}</td>-->
						<!-- <td class="text-center">{$shipping_status[$list[shipping_status]]}</td>
						<td class="text-center">{$list.pay_name|default='其他方式'}</td>
						<td class="text-center">{$list.shipping_name}</td> -->
						<td class="text-center">{$list.add_time|date='Y-m-d H:i',###}</td>
						<td class="text-center">
								<if condition ="$list['shipping_status'] eq '1'" ><span style="color: #3C8DBC;">已发货</span>
							<elseif condition="$list['shipping_status'] eq '2'"/><span style="color: #3C8DBC;">自提</span>	
							<elseif condition="$list['shipping_status'] eq '3'"/><span style="color: #3C8DBC;">签收</span>	

							<elseif condition="$list['pay_s_jj'] neq '0' and $list['psarr'] eq '1'"/><span style="color: #3C8DBC;">待发货</span>	
							<elseif condition="$list['pay_s_jj'] neq '0'"/><span style="color: #3C8DBC;">已支付待加工</span>	
							<else/>	
							<if condition="$list['already_offer'] eq '0' and $list['order_status'] eq '0'"><span style="color: #ED452B;">等待分配工序</span>
								<elseif condition="$list['already_offer'] eq '0' and $list['order_status'] eq '1' " /><span style="color: #67B02A;">订单已分配完等待微企报价与审核</span>
								<elseif condition="$list['already_offer'] eq '0' and $list['order_status'] eq '2' " /><span style="color: #67B02A;">订单未分配完工序，微企可报价已分配图号</span>

								<elseif condition="$list['already_offer'] eq '1'" /><span style="color: #67B02A;">审核通过等待消费者选择</span>
								<elseif condition="$list['already_offer'] eq '2'" /><span style="color: #3C8DBC;">已选择报价</span>
								<elseif condition="$list['already_offer'] eq '3'" /><span style="color: #3C8DBC;">签约合同</span>
								<elseif condition="$list['already_offer'] eq '4'" /><span style="color: #3C8DBC;">订单待支付</span>

							</if>
						</if>
						</td>
						<td class="text-center">
							<a href="{:U('Admin/order/tuhaolist',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a>

							<!--分配工序操作 -->
							<!--<if condition="$list['allot_status'] eq '0' && $admin_info['admin_id'] eq '1'">
                                                <a href="{:U('Admin/order/fpgx',array('order_id'=>$list['order_id']))}"  data-toggle="tooltip" title="分配工序" class="btn btn-warning" data-original-title="分配工序"><i class="fa fa-cubes"></i></a>
                                                <elseif condition="$list['wq_id'] eq '0' && $admin_info['admin_id'] neq '1' && $list['allot_status'] neq '0'"/>
                                                <a href="{:U('Admin/order/gxbj',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="工序报价" class="btn btn-warning" data-original-title="工序报价"><i class="fa fa-jpy"></i></a>
                                        	</if>-->

							<if condition="($list['order_status'] eq 3) or ($list['order_status'] eq 5)">
								<a href="{:U('Admin/order/delete_order',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
								<else/>
								<a href="javascript:void(0)" onclick="alert('该订单不得删除')" data-toggle="tooltip" class="btn btn-default" title="删除"><i class="fa fa-trash-o"></i></a>
							</if>
							<!--                                        	<a href="{:U('Admin/order/tuhaolist',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="图号显示" class="btn btn-info"" data-original-title="图号显示"><i class="ffa fa-eye"></i></a>
-->
						</td>
				
					</tr>
				
					</if>
				
				</volist>
			</tbody>
		</table>
	</div>
</form>
<div class="row">
	<div class="col-sm-6 text-left"></div>
	<div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
	$(".pagination  a").click(function() {
		var page = $(this).data('p');
		ajax_get_table('search-form2', page);
	});
</script>